package com.hyh.toyshopping.service.impl;

import com.hyh.toyshopping.mapper.MessageMapper;
import com.hyh.toyshopping.model.Message;
import com.hyh.toyshopping.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.0
 * @BelongsProject:IntelliJ IDEA
 * @BelongsPackage:com.hyh.toyshopping.service.impl
 * @Author:hyhWTX
 * @ClassName:MessageServiceImpl
 * @CreateTime:2022年-12月-18日 13:45
 * @Description: TODO (一句话描述以下该类的功能)
 */
@Service
public class MessageServiceImpl implements MessageService {

    @Autowired
    private MessageMapper messageMapper;
    @Override
    public List<Message> getAllMessage() {
         return  messageMapper.getAllMessage();
    }

    @Override
    public void addMessage(Message message) {
        messageMapper.addMessage(message);
    }
}
